package com.itheima.homework.homework5;

public class Box {
    //定义一个奶瓶
    private int milk = 10;
    //定义一个标记
    private boolean flag = false;
    //定义方法放牛奶传递参数
    public void put(int milk){
        this.milk = milk;
        System.out.println("送奶人正在放第"+milk+"杯奶");
    }
    //定义方法区牛奶
    public void take(){
        System.out.println("正在喝第"+milk +"杯奶");
    }
    //set/get方法

    public int getMilk() {
        return milk;
    }

    public void setMilk(int milk) {
        this.milk = milk;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }
}
